package xyhoo.springframework.beans.factory.parsing;

import xyhoo.springframework.util.Assert;

public class Problem {

    private final String message;

    private final Location location;

    private final ParseState parseState;

    private final Throwable rootCause;

    public Problem(String message, Location location, ParseState parseState, Throwable rootCause) {
        Assert.notNull(message, "Message must not be null");
        Assert.notNull(location, "Location must not be null");
        this.message = message;
        this.location = location;
        this.parseState = parseState;
        this.rootCause = rootCause;
    }
}
